Fox's Git Mirrors
scripts/ci/setup-revive.sh 61af5556362c8bdf7c09a1c01bc84f81629f281b (61af5556) Text, 377 B
#!/bin/sh
# Install revive from a tagged module version (requires Go on PATH).
# Usage: setup-revive.sh [module_version]
set -eu
. "$(dirname "$0")/priv.sh"
export PATH="/usr/local/go/bin:$PATH"
VER="${1:-v1.15.0}"
run_priv env PATH="$PATH" GOBIN=/usr/local/bin GOFLAGS= GOPROXY=https://proxy.golang.org,direct go install "github.com/mgechev/revive@${VER}"
command -v revive
Served by rngit 1.5.2 - Generated in 0.02s